package com.gang.music.system.controller;

import com.smallchill.core.toolbox.captcha.Captcha;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

@Controller
public class CaptchaImageCreateController {
	
	/**
	 * 获取验证码
	 * @param response
	 */
	@RequestMapping("/captcha")
	public void captcha(HttpServletResponse response) {
		Captcha.init(response).render();
	}

}
